package com.xuecheng.content.model.dto;


import com.xuecheng.base.exception.ValidationGroups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @author: Hes
 * @description 添加课程dto
 * @date: 2023/6/20 11:59
 */
@Data
@ApiModel(value = "AddCourseDto", description = "新增课程基本信息")
public class AddCourseDto {
    //     "mt": "",
//             "st": "",
//             "name": "",
//             "pic": "",
//             "teachmode": "200002",
//             "users": "初级人员",
//             "tags": "",
//             "grade": "204001",
//             "description": "",
//             "charge": "201000",
//             "price": 0,
//             "originalPrice":0,
//             "qq": "",
//             "wechat": "",
//             "phone": "",
//             "validDays": 365
    @NotEmpty(message = "大分类不能为空")
    private String mt;

    @NotEmpty(message = "小分类不能为空")
    private String st;

    @ApiModelProperty(value = "课程名称", required = true)
    @NotEmpty(message = "课程名称不能为空",groups = {ValidationGroups.Inster.class})
    @NotEmpty(message = "课程名称不能为空",groups = {ValidationGroups.Update.class})
    private String name;

    @ApiModelProperty(value = "课程图片", required = true)
//    @NotEmpty(message = "课程图片不能为空",groups = {ValidationGroups.Inster.class})
//    @NotEmpty(message = "课程图片不能为空",groups = {ValidationGroups.Update.class})
    private String pic;

    @ApiModelProperty(value = "教育模式", required = true)
    @NotEmpty(message = "教育模式不能为空")
    private String teachmode;

    @ApiModelProperty(value = "使用人群", required = true)
    private String users;

    @ApiModelProperty(value = "课程标签", required = true)
    private String tags;

    @ApiModelProperty(value = "课程等级", required = true)
    @NotEmpty(message = "课程等级不能为空")
    private String grade;

    private String description;

    @NotEmpty(message = "收费规则不能为空")
    private String charge;

    private float price;

    private float originalPrice;

    private String qq;

    private String wechat;

    private String phone;

    private int validDays;

}
